package com.designmodel.atcion.templatemethod;

/**
 * 模板方法模式
 *
 * @author think
 * @version 1.0.0
 * @since 2020/4/22
 */
public class Test {

    public static void main(String[] args) {
        String exp = "8+8";
        AbstractCalculator cal = new Plus();
        int result = cal.calculate(exp, "\\+");
        System.out.println(result);
    }
}
